<?php

namespace App\Consts;

class GlobalSalonConst
{
    // 状态：0即将开幕，1进行中，2已结束，3往期回顾
    public const STATUS_START_IMMEDIATELY = 0;
    public const STATUS_STARTING = 1;
    public const STATUS_ENDING = 2;
    public const STATUS_REVIEW = 3;

    // 排序权重，即将开幕3，进行中4，已结束2，往期回顾1
    public static $weightMap = [
        self::STATUS_START_IMMEDIATELY => 3,
        self::STATUS_STARTING => 4,
        self::STATUS_ENDING => 2,
        self::STATUS_REVIEW => 1,
    ];

    // 是否启用，0禁用，1启用
    public const IS_DISABLED = 0;
    public const IS_ENABLED = 1;

    // 是否为往期回顾，0否，1是
    public const IS_NOT_REVIEW = 0;
    public const IS_REVIEW = 1;
}
